import i18n from '@/lang'
// 升级异常统计中表格表头
export const fotaMonitorColumns = [
  {
    title: 'VIN',
    dataIndex: 'vin',
    scopedSlots: { customRender: 'vin' },
    width: 200
  },
  {
    title: i18n.t('pch'),
    dataIndex: 'batchId',
    scopedSlots: { customRender: 'pch' },
    width: 120,
    special: true
  },
  {
    title: '任务名称',
    dataIndex: 'taskName',
    scopedSlots: { customRender: 'taskName' },
    width: 120
  },
  {
    title: 'OTA任务类型',
    dataIndex: 'taskBigType',
    scopedSlots: { customRender: 'taskBigType' },
    key: 'taskBigType',
    width: 120
  },
  {
    title: '升级类型',
    dataIndex: 'upgradeType',
    scopedSlots: { customRender: 'upgradeType' },
    key: 'upgradeType',
    width: 120
  },
  {
    title: i18n.t('modelName'),
    dataIndex: 'modelName',
    scopedSlots: { customRender: 'modelName' },
    width: 120
  },
  {
    title: '目标车辆版本',
    dataIndex: 'normalVersion',
    scopedSlots: { customRender: 'normalVersion' },
    width: 120
  },
  {
    title: '升级前-车辆版本',
    dataIndex: 'normalOriginVer',
    scopedSlots: { customRender: 'normalOriginVer' },
    width: 120
  },
  {
    title: "DiLink版本",
    dataIndex: 'mediaVersion',
    scopedSlots: { customRender: 'mediaVersion' },
    width: 120
  },
  {
    title: i18n.t('updateResult'),
    dataIndex: 'upgradeResult',
    scopedSlots: { customRender: 'updateResult' },
    width: 100
  },
  {
    title: i18n.t('latestNormalStatus'),
    dataIndex: 'normalStatus',
    scopedSlots: { customRender: 'normalStatus' },
    width: 80
  },
  {
    title: i18n.t('normalTime'),
    dataIndex: 'normalTime',
    scopedSlots: { customRender: 'normalTime' },
    width: 160
  },
  {
      title: i18n.t('upgradeDesc'),
      dataIndex: 'upgradeDesc',
      scopedSlots: { customRender: 'upgradeDesc' },
      width: 160
  },
 {
      title: i18n.t('userNotice'),
      dataIndex: 'updateNoteInfo',
      scopedSlots: { customRender: 'userNotice' },
      width: 160
  },
 {
      title: i18n.t('updateType'),
      dataIndex: 'updatePathDesc',
      scopedSlots: { customRender: 'updateType' },
      width: 120
  },
  {
    title: '数据上报时间',
    dataIndex: 'createTime',
    scopedSlots: { customRender: 'reportingTime' },
    width: 160,
    special: true
  },
  {
    title: i18n.t('失败报文类型'),
    dataIndex: 'failLogType',
    scopedSlots: { customRender: 'failLogType' },
    width: 120
  },
  {
    title: i18n.t('日志文件名'),
    dataIndex: 'logFileName',
    scopedSlots: { customRender: 'logFileName' },
    width: 120
  },
  {
    title: i18n.t('operation'),
    scopedSlots: { customRender: 'operation' },
    width: 180,
    special: true,
    fixed: 'right'
  }
]
